home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Vk / VkCmdManager.z / VkCmdManager
Encoding:
Text File  |  2001-04-17  |  2.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkCCCCmmmmddddMMMMaaaannnnaaaaggggeeeerrrr((((3333xxxx))))                                              VVVVkkkkCCCCmmmmddddMMMMaaaannnnaaaaggggeeeerrrr((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkCmdManager - execute commands
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      VkCallbackObject
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <Vk/VkCmdManager.h>
  16.  
  17. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.           The VkCmdManager class provides a central place for executing
  19.           commands and managing them on a undo/redo stacks. The management of
  20.           the VkCmdManager is left to the application, which may wish to have
  21.           a single CmdManager, or multiple instances, depending on the
  22.           application architecture.
  23.  
  24.           The VkCmdManager class can execute a cmd given a VkCmd object, a
  25.           VkCmdFactory object, or a idintifying string, if the VkCmd has been
  26.           registered with the VkCmdRegistry. Commands are executed by calling
  27.           run():
  28.  
  29.  
  30.  
  31.               cmdManager->run("CutCommand");
  32.  
  33.  
  34.           an optional argument to all forms of run can be supplied to be
  35.           passed to the command (via the VkCmd::setData() method) before the
  36.           cmd is executed. This data is uninterpreted by the VkCmdManager, and
  37.           must be agreed upon by the cmd object and the caller.
  38.  
  39.           Interaction with the undo management facilties of the VkCmdManager
  40.           are most easily accessed by the VkMenu class's addUndoAction() and
  41.           addRedoAction() methods. The methods connect an instance of
  42.           VkCmdManager with the appropriate menu commands.
  43.  
  44.  
  45.  
  46. SSSSAAAAMMMMPPPPLLLLEEEE CCCCOOOODDDDEEEE
  47.      /usr/share/src/ViewKit/Commands/ByName/
  48.  
  49.  
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      VkCmd, VkCmdFactory, VkCmdRegistry
  53.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  54.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  55.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  56.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.